package com.tsinjie.metadata.java.model.hibernate;

import com.tsinjie.metadata.java.model.JavaField;

/**
 * Created by LiuXunming on 2015-10-14.
 * 多对一
 */
public class ManyToOne extends JavaField {

    private String joinColumn;

    public String getJoinColumn() {
        return joinColumn;
    }

    public void setJoinColumn(String joinColumn) {
        this.joinColumn = joinColumn;
    }

    @Override
    public String toString() {
        return "ManyToOne{" +
                "name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                ", type='" + type + '\'' +
                ", jdbcType='" + jdbcType + '\'' +
                ", fieldName='" + fieldName + '\'' +
                ", length=" + length +
                ", nullable=" + nullable +
                ", defaultValue=" + defaultValue +
                ", htmlShowType='" + htmlShowType + '\'' +
                ", javaFieldValues=" + javaFieldValues +
                ", joinColumn='" + joinColumn + '\'' +
                '}';
    }
}
